package com.igeek.javase.ch04.storage;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

/*
 *@author wangpeng
 *2023/7/14 21:27
 *@description TODO
 */
public class Computer {

    private Istorage stroage;

    public Computer(Istorage stroage){
        this.stroage = stroage;
    }

    public void readData(){
        System.out.println("电脑读取数据！");
        stroage.read();
    }

    public void writeData(){
        System.out.println("电脑写入数据！");
        stroage.write();
    }

}
